package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * ELoginrecord is a Querydsl bean type
 */
@Label("Loginrecord")
public class ELoginrecord extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13152084361513L;    
    @Label("区域")
    @Size(max=45)
    private String area;

    @Label("设备")
    @Size(max=45)
    private String device;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={UpdateCheck.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("登录IP")
    @Size(max=45)
    private String loginIp;

    @Label("编号")
    @Size(max=45)
    private String loginRecordId;

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getLoginRecordId() {
        return loginRecordId;
    }

    public void setLoginRecordId(String loginRecordId) {
        this.loginRecordId = loginRecordId;
    }

    public String toString() {
         return String.format("ELoginrecord { area : %s,device : %s,flag : %s,id : %s,loginIp : %s,loginRecordId : %s }",area,device,flag,id,loginIp,loginRecordId);
    }

}

